/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.app.pay.order.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 支付管理Entity
 * @author zpp
 * @version 2020-03-13
 */
@Table(name="t_pay_order", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="order_no", attrName="orderNo", label="order_no"),
		@Column(name="pay_amount", attrName="payAmount", label="pay_amount"),
		@Column(name="user_id", attrName="userId", label="user_id"),
		@Column(name="course_id", attrName="courseId", label="course_id"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class AppPayOrder extends DataEntity<AppPayOrder> {
	
	private static final long serialVersionUID = 1L;
	private String orderNo;		// order_no
	private String payAmount;		// pay_amount
	private String userId;		// user_id
	private String courseId;		// course_id
	
	public AppPayOrder() {
		this(null);
	}

	public AppPayOrder(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="order_no长度不能超过 50 个字符")
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@Length(min=0, max=50, message="pay_amount长度不能超过 50 个字符")
	public String getPayAmount() {
		return payAmount;
	}

	public void setPayAmount(String payAmount) {
		this.payAmount = payAmount;
	}
	
	@Length(min=0, max=50, message="user_id长度不能超过 50 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=50, message="course_id长度不能超过 50 个字符")
	public String getCourseId() {
		return courseId;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}
	
}